package com.ruoyi.common.core.redis;

import java.util.List;
import java.util.Map;

/**
 * 全局缓存抽象类
 * @Author luowu
 * @Date 2024/9/23 涵 13:53:38
 */
public abstract class GlobalAbstract {

    /**
     * 通过字典code列表获取字典Map
     * @param codeList
     * @return
     */
    public abstract Map<Long, String> cacheDictMap(List<String> codeList);
    public abstract Map<Long, String> cacheDictParentMap(List<String> codeList);

    /**
     * 异步删除包含code的缓存key
     * @param code
     */
    public abstract void asyncRemoveCachePrefix(String code);

    /**
     *
     * @return
     */
    public abstract Map<Long, String> cacheParentGoodsMap();
}
